#ifndef _XTCPSOCKET_H__
#define _XTCPSOCKET_H__


#include "XString.h"

class XTcpSocket
{
public:
	XTcpSocket(void);
	~XTcpSocket(void);

public:
	bool  Connect(const XString& host, const int port);
	int Recv(XString& data, int timeout=10);
	int Send(const XString& data);

private:
	int _sock;
};

#endif 

